#pragma once
#include "mfcwpfpage.h"
#include "MFCWPFEleCtrl.h"

class AFX_EXT_CLASS CMFCWPFInterface
{
public:
	CMFCWPFInterface(void);
	~CMFCWPFInterface(void);

	bool AddFile(const CString & szFileName);
	void DrawSelf(HDC hDC);
	bool PageDown();
	bool PageUp();
	void TurnToNumber(int nPageNum);
	bool MouseLeftButtonUp(UINT nFlags, CPoint point, CWnd * pWnd);
	void ChangeRatio(float fXRatio, float fYRatio);

	void Transform(const CString & szFileName);
	void TransformAttributes(CECGXmlNode & oNode, CString & szTextOut, int nWidth, int nHeight);

protected:
	CMFCWPFEleCtrl * m_pMFCWPFEleCtrl;
	vector<CString> m_vecFileOrder;
	map<CString, CMFCWPFPage *> m_mapMFCWPFPage;
	vector<CString>::iterator m_iterDisplayFile;
	CFontLib m_oFontLib;
	CPenLib m_oPenLib;
	CBrushLib m_oBrushLib;
	CDCPlus * m_pCDCPlus;
};
